package com.example.cyclops;

public class MythIPtable {
	private String m_keyname;
	private String m_ip;
	private int m_port;
	private String m_username;
	private String m_password;
	public MythIPtable(String[] splitstr){
		if(splitstr.length == 5){
			m_keyname = splitstr[0];
			m_ip = splitstr[1];
			m_port = Integer.parseInt(splitstr[2]);
			m_username = splitstr[3];
			m_password = splitstr[4];
		}
	}
	public MythIPtable(String keyname,String ip,String port,String username,String password){
		m_keyname = keyname;
		m_ip = ip;
		m_port = Integer.parseInt(port);
		m_username = username;
		m_password = password;
	}
	public String getKeyname(){
		return m_keyname;
	}
	public String getIP(){
		return m_ip;
	}
	public int getPort(){
		return m_port;
	}
	public String getUsername(){
		return m_username;
	}
	public String getPassword(){
		return m_password;
	}
}
